package com.gegao.cashsys._01_simple_factory.cash;

/**
 * Created by zhangzhanzhong on 2015/12/25.
 */
public class CashRebase extends CashSuper {

    private double moneyRebase = 1d;

    public CashRebase(double moneyRebase) {
        this.moneyRebase = moneyRebase;
    }

    @Override
    public double acceptCash(double cash) {
        return (cash * moneyRebase);
    }
}
